<?php
class TwigExtension_Textile extends Twig_Extension
{
  public function getFilters()
  {
    return array(
      'textile'  => array('te__textile', false),
      );
  }
  
  public function getName()
  {
    return 'TwigExtension_Textile';
  }
  
  static public function Textile($text)
  {
    $textile = new Textile();
    return $textile->TextileThis($text);
  }
}

function te__textile($text)
{
  $textile = new Textile();
  return $textile->TextileThis($text);
}